package com.alm.token.ui.data.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.io.Serializable;
import java.util.List;

/**
 * Created by en on 2019/1/11.
 */

public class CorwdIndexData  implements Serializable {

    /**
     * msg : 操作成功
     * status : 0
     * data : {"cfd":{"id":1,"createTime":1547109515000,"updateTime":null,"startTime":1547109515000,"endTime":null,"status":1,"ethSwitch":1,"usdtSwitch":null,"ethPrice":1,"usdtPrice":null,"giveUpPro":1},"g12Price":"0.2","wallets":[{"id":1,"name":"ETH","engName":"Ethereum","logo":"/static/images/05838053876.png","price":135.04,"money":58.7,"totalMoney":7926.848,"createTime":1545892607000,"updateTime":1546599384000}],"goods":[{"id":1,"name":"1星会员","usdtPrice":100,"ethPrice":0.5,"level":1,"createTime":1547104194000,"updateTime":null,"status":1,"content":"","logo":"","teamFloor":5}]}
     * success : true
     * total : null
     */

    private String msg;
    private int status;
    private DataBean data;
    private boolean success;
    private Object total;

    protected CorwdIndexData(Parcel in) {
        msg = in.readString();
        status = in.readInt();
        success = in.readByte() != 0;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public Object getTotal() {
        return total;
    }

    public void setTotal(Object total) {
        this.total = total;
    }

    public static class DataBean implements Serializable  {
        /**
         * cfd : {"id":1,"createTime":1547109515000,"updateTime":null,"startTime":1547109515000,"endTime":null,"status":1,"ethSwitch":1,"usdtSwitch":null,"ethPrice":1,"usdtPrice":null,"giveUpPro":1}
         * g12Price : 0.2
         * wallets : [{"id":1,"name":"ETH","engName":"Ethereum","logo":"/static/images/05838053876.png","price":135.04,"money":58.7,"totalMoney":7926.848,"createTime":1545892607000,"updateTime":1546599384000}]
         * goods : [{"id":1,"name":"1星会员","usdtPrice":100,"ethPrice":0.5,"level":1,"createTime":1547104194000,"updateTime":null,"status":1,"content":"","logo":"","teamFloor":5}]
         */

        private CfdBean cfd;
        private double g12Price;
        private List<WalletsBean> wallets;
        private List<GoodsBean> goods;

        public CfdBean getCfd() {
            return cfd;
        }

        public void setCfd(CfdBean cfd) {
            this.cfd = cfd;
        }

        public double getG12Price() {
            return g12Price;
        }

        public void setG12Price(double g12Price) {
            this.g12Price = g12Price;
        }

        public List<WalletsBean> getWallets() {
            return wallets;
        }

        public void setWallets(List<WalletsBean> wallets) {
            this.wallets = wallets;
        }

        public List<GoodsBean> getGoods() {
            return goods;
        }

        public void setGoods(List<GoodsBean> goods) {
            this.goods = goods;
        }

        public static class CfdBean  implements Serializable {
            /**
             * id : 1
             * createTime : 1547109515000
             * updateTime : null
             * startTime : 1547109515000
             * endTime : null
             * status : 1
             * ethSwitch : 1
             * usdtSwitch : null
             * ethPrice : 1
             * usdtPrice : null
             * giveUpPro : 1
             */

            private int id;
            private long createTime;
            private long updateTime;
            private long startTime;
            private long endTime;
            private int status;
            private int ethSwitch;
            private int usdtSwitch;
            private double ethPrice;
            private double usdtPrice;
            private double giveUpPro;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public long getCreateTime() {
                return createTime;
            }

            public void setCreateTime(long createTime) {
                this.createTime = createTime;
            }

            public long getUpdateTime() {
                return updateTime;
            }

            public void setUpdateTime(long updateTime) {
                this.updateTime = updateTime;
            }

            public long getStartTime() {
                return startTime;
            }

            public void setStartTime(long startTime) {
                this.startTime = startTime;
            }

            public long getEndTime() {
                return endTime;
            }

            public void setEndTime(long endTime) {
                this.endTime = endTime;
            }

            public int getStatus() {
                return status;
            }

            public void setStatus(int status) {
                this.status = status;
            }

            public int getEthSwitch() {
                return ethSwitch;
            }

            public void setEthSwitch(int ethSwitch) {
                this.ethSwitch = ethSwitch;
            }

            public int getUsdtSwitch() {
                return usdtSwitch;
            }

            public void setUsdtSwitch(int usdtSwitch) {
                this.usdtSwitch = usdtSwitch;
            }

            public double getEthPrice() {
                return ethPrice;
            }

            public void setEthPrice(double ethPrice) {
                this.ethPrice = ethPrice;
            }

            public double getUsdtPrice() {
                return usdtPrice;
            }

            public void setUsdtPrice(double usdtPrice) {
                this.usdtPrice = usdtPrice;
            }

            public double getGiveUpPro() {
                return giveUpPro;
            }

            public void setGiveUpPro(double giveUpPro) {
                this.giveUpPro = giveUpPro;
            }
        }

        public static class WalletsBean implements Serializable  {
            /**
             * id : 1
             * name : ETH
             * engName : Ethereum
             * logo : /static/images/05838053876.png
             * price : 135.04
             * money : 58.7
             * totalMoney : 7926.848
             * createTime : 1545892607000
             * updateTime : 1546599384000
             */

            private int id;
            private String name;
            private String engName;
            private String logo;
            private double price;
            private double money;
            private double totalMoney;
            private long createTime;
            private long updateTime;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getEngName() {
                return engName;
            }

            public void setEngName(String engName) {
                this.engName = engName;
            }

            public String getLogo() {
                return logo;
            }

            public void setLogo(String logo) {
                this.logo = logo;
            }

            public double getPrice() {
                return price;
            }

            public void setPrice(double price) {
                this.price = price;
            }

            public double getMoney() {
                return money;
            }

            public void setMoney(double money) {
                this.money = money;
            }

            public double getTotalMoney() {
                return totalMoney;
            }

            public void setTotalMoney(double totalMoney) {
                this.totalMoney = totalMoney;
            }

            public long getCreateTime() {
                return createTime;
            }

            public void setCreateTime(long createTime) {
                this.createTime = createTime;
            }

            public long getUpdateTime() {
                return updateTime;
            }

            public void setUpdateTime(long updateTime) {
                this.updateTime = updateTime;
            }
        }

        public static class GoodsBean implements Serializable  {
            /**
             * id : 1
             * name : 1星会员
             * usdtPrice : 100
             * ethPrice : 0.5
             * level : 1
             * createTime : 1547104194000
             * updateTime : null
             * status : 1
             * content :
             * logo :
             * teamFloor : 5
             */

            private int id;
            private String name;
            private double usdtPrice;
            private double ethPrice;
            private int level;
            private long createTime;
            private long updateTime;
            private int status;
            private String content;
            private String logo;
            private int teamFloor;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public double getUsdtPrice() {
                return usdtPrice;
            }

            public void setUsdtPrice(double usdtPrice) {
                this.usdtPrice = usdtPrice;
            }

            public double getEthPrice() {
                return ethPrice;
            }

            public void setEthPrice(double ethPrice) {
                this.ethPrice = ethPrice;
            }

            public int getLevel() {
                return level;
            }

            public void setLevel(int level) {
                this.level = level;
            }

            public long getCreateTime() {
                return createTime;
            }

            public void setCreateTime(long createTime) {
                this.createTime = createTime;
            }

            public long getUpdateTime() {
                return updateTime;
            }

            public void setUpdateTime(long updateTime) {
                this.updateTime = updateTime;
            }

            public int getStatus() {
                return status;
            }

            public void setStatus(int status) {
                this.status = status;
            }

            public String getContent() {
                return content;
            }

            public void setContent(String content) {
                this.content = content;
            }

            public String getLogo() {
                return logo;
            }

            public void setLogo(String logo) {
                this.logo = logo;
            }

            public int getTeamFloor() {
                return teamFloor;
            }

            public void setTeamFloor(int teamFloor) {
                this.teamFloor = teamFloor;
            }
        }
    }
}
